
package bean.reflection.basic;

/**
 * 一個測試用的 java bean <br>
 * 有一個 method getHeoolString(), 並沒有宣告, 但在 descriptor.getName(), 也會被抓取到<br>
 * <br>
 * Copyright: Copyright (c) 2001-2007<br>
 * Company: 一零四資訊科技股份有限公司
 * 
 * @author Eric.Kao(eric.kao@104.com.tw)
 * @version 1.0
 */
public class MyBean
{
	private String name;

	private boolean selected;

	public MyBean()
	{
	}

	public String getHelloString()
	{
		return "Hi " + name;
	}

	public String getName()
	{
		return name;
	}

	public boolean isSelected()
	{
		return selected;
	}

	public void setName( String name )
	{
		this.name = name;

		// for TestInvokeWriteMethod.java
		System.out.println( "execute method setName() and name:" + name );
	}

	public void setSelected( boolean selected )
	{
		this.selected = selected;

		// for TestInvokeWriteMethod.java
		System.out.println( "execute method setSelected() and selected:" + selected );
	}

}
